<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
/* 子孙后代选择器 */
div div p {
	color: red;
}
/* 子元素选择器 */
body>div>div>p {
	color: blue;
}
</style>
</head>
<body>
  <p>p1</p>
  <div>
    <p>p2</p>
    <div>
      <p>p3</p>
    </div>
    <div>
      <p>p4</p>
      <div>
        <p>p5</p>
      </div>
    </div>
  </div>
</body>
</html>